package me.caofeng.service.api;

import me.caofeng.pojo.Address;
import me.caofeng.pojo.Response;

import javax.print.DocFlavor;
import java.util.List;

/**
 * Copyright © 2017曹峰. All rights reserved.
 *
 * @Prject: mall
 * @Package: me.caofeng.service.api
 * @Description:
 * @Author: 曹峰 blog.caofeng.me
 * @Date: 2017-06-27 17:05
 * @Version: V1.0
 */
public interface IAddressService {
    /**
     * @Author:曹峰 blog.caofeng.me
     * @Date: 2017/6/27 17:23
     * @Description: 添加地址
    */
    Response<Address> addAddress(Address address);

    /**
     * @Author:曹峰 blog.caofeng.me
     * @Date: 2017/6/27 17:24
     * @Description: 删除地址
    */
    Response deleteAddress(Integer id ,String userId);

    Response<Address> updateAddress(Integer id ,String userId ,Address address);

    Response<Address> getAddress(Integer id ,String userId);

    Response<List<Address>> getAddresses(String userId);
}
